import { RuleEventType } from "../enums/CommonType";

export default class RuleInfo {
    required: boolean = true;

    type: string = '';

    min: number = -1;              // 最小值

    max: number = 999999;  // 最大值

    message: string;

    trigger: RuleEventType;     // 触发方式


    constructor(message: string, trigger: RuleEventType) {
        this.message = message;
        this.trigger = trigger;
    }

}